package cn.huiyunche.base.service.vo;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * 请求用户对象
 *
 * @author hdy [Tuffy]
 */
public class SUserRequestVo {

    @NotBlank(message = "请输入真实姓名")
    private String realName;

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^(1[0-9][0-9]\\d{8})$", message = "手机号格式错误")
    private String phone;

    private String name;

    private String email;

    private int companyCategory;

    private Long companyCode;

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Long getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(Long companyCode) {
        this.companyCode = companyCode;
    }

    public int getCompanyCategory() {
        return companyCategory;
    }

    public void setCompanyCategory(int companyCategory) {
        this.companyCategory = companyCategory;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "SUserRequestVo{" +
                "realName='" + realName + '\'' +
                ", phone='" + phone + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", companyCategory=" + companyCategory +
                ", companyCode=" + companyCode +
                '}';
    }
}
